package com.cainaer.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cainaer.product.domain.ProductSku;

import java.util.List;

/**
 * <p>
 * SKU表 服务类
 * </p>
 *
 * @author Tina
 * @since 2020-09-11
 */
public interface IProductSkuService extends IService<ProductSku> {

    /**
     * 新增商品SKU
     *
     * @param productSku
     * @return
     */
    public Integer insertProductSku(ProductSku productSku);

    /**
     * 编辑商品SKU
     *
     * @param productSku
     * @return
     */
    public Integer editProductSku(ProductSku productSku);

    /**
     * 通过规格ID查询sku数据
     *
     * @param attributeId
     * @return
     */
    List<ProductSku> selectProductSkuByAttributeId(Long attributeId);

}
